package cn.tedu.tmall.front.mall.dao.persist.repository;

import cn.tedu.tmall.front.mall.pojo.entity.ReceiverAddress;
import cn.tedu.tmall.front.mall.pojo.vo.ReceiverAddressListItemVO;
import cn.tedu.tmall.front.mall.pojo.vo.ReceiverAddressStandardVO;

import java.util.List;

public interface IReceiverAddressRepository {
    int insert(ReceiverAddress receiverAddress);
    int deleteById(Long id);
    int updateNonDefaultByUserId(Long userId);
    int updateById(ReceiverAddress receiverAddress);
    //查询单个收货地址
    ReceiverAddressStandardVO selectById(Long id);
    //查询收货地址列表
    List<ReceiverAddressListItemVO> listByUserId(Long userId);
}